package com.sa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sa.bean.entity.UserDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<UserDO> {

    @Select("select count(1) from user")
    Integer selectCountForUser();

    @Select("select username from user where id = #{id}")
    String selectNameById(@Param("id") Long id);
}
